﻿clearForm("formEditor");

document.formEditor.tuid.value = "${fld:tuid}";
document.formEditor.project_id.value = "${fld:project_tuid}";
document.formEditor.project_name.value = "${fld:project_name}";
document.formEditor.archives_no.value = "${fld:archives_no}";
document.formEditor.place_name.value = "${fld:place_name}";
document.formEditor.master_name.value = "${fld:master_name}";
document.formEditor.cun_name.value = "${fld:cun_name}";
document.formEditor.tun_name.value = "${fld:tun_name}";
document.formEditor.location_id.value = "${fld:location_tuid}";
document.formEditor.location_name1.value = "${fld:location_name1}";
document.formEditor.house_tuid.value = "${fld:house_tuid}";
document.formEditor.house_name.value = "${fld:house_name}";
document.formEditor.house_type_tuid.value = "${fld:house_type_tuid}";
document.formEditor.room_type.value = "${fld:room_type}";
document.formEditor.jianzhu_area.value = "${fld:jianzhu_area}";
document.formEditor.population.value = "${fld:population}";

document.formEditor.remark.value = "${fld:remark@js}";
//setCheckboxValue("archives_status","${fld:archives_status}","formEditor");
//档案归档状态为1
document.formEditor.archives_status.value = "1";

//信息不能修改，只能删除以后重新建
setReadOnly(document.formEditor.archives_no);
setReadOnly(document.formEditor.master_name);
setReadOnly(document.formEditor.house_name);
setReadOnly(document.formEditor.jianzhu_area);
setReadOnly(document.formEditor.population);

//document.forms["formEditor"].elements["deleteCommand"].style.display='inline';
document.getElementById("divEditor").style.display='';
document.getElementById("findHouseDiv").innerHTML = "";
